<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 训练1
        function address(province, city, district, detailedAddress) {
            let strAddress = `收货地址为：${province}省-${city}市-${district}区-${detailedAddress}`
            return strAddress;
        }
        let strAddress = address('江苏', '南京', '鼓楼区', '扬州路1号');
        document.write(strAddress);
        document.write(`<p></p>`)
        // 训练2
        let absoluteValue = function (number) {
            let absNumber = Math.abs(number);
            return absNumber;
        }
        let absNumber = absoluteValue(-1001010);
        document.write(`这个数的绝对值为${absNumber}`);
    </script>
</body>

</html>